<div id="goodsFlowSelect">
    <!--页面调整-->
    <el-row v-loading="showLoading"
            element-loading-text="拼命加载中">
        <el-col :span="24">
            <div class="inner btn-nav">
                <el-input
                        @change="selectReturn"
                        v-model="bgGoodsName"
                        class="input"
                        icon="search"
                        placeholder="货品名称"></el-input>
                <el-input
                        @change="selectReturn"
                        class="input"
                        v-model="bgGoodsNo"
                        icon="search"
                        placeholder="货品编号"></el-input>
                <el-input
                        @change="selectReturn"
                        class="input"
                        v-model="ckCkdjClientname"
                        icon="search"
                        placeholder="客户名称"></el-input>
                <el-select
                        :disabled="watchView"
                        v-model="ckArehouseId"
                        placeholder="请选择所属仓库">
                    <el-option :label="obj.baName" :value="obj.baArehouseId"
                               v-for="obj of baseArehouses"></el-option>
                </el-select>
                <button @click="dialogSelectVisible=!dialogSelectVisible" class="btn btn-search"><i
                        class="icon search"></i><span>详细查询</span>
                </button>
                <button @click="multiSelectClick" class="btn btn-multiSelect"><i
                        class="icon sel"></i><span>多选</span>
                </button>
                <button @click="moreOperationModify" class="btn btn-modify" v-show="multiSelect"><i
                        class="icon modify"></i><span>导出</span>
                </button>
            </div>
            <el-table
                    :data="goodsFlowSelect"
                    :default-sort="{prop: 'sjsj', order: 'descending'}"
                    :max-height="config_table_height()"
                    ref="table"
                    class="goodsFlowSelectTable"
                    @selection-change='multiSelectionChange'
                    style="width: 100%">
                <el-table-column
                        type="expand">
                    <template scope="props">
                        <el-row>
                            <h3 style="margin-top: 0; margin-left: -15px;">货品流向查询详细</h3>
                        </el-row>
                        <el-form label-position="left" inline class="demo-table-expand">
                            <el-row>
                                <el-col :span="10">
                                    <el-form-item label="仓库">
                                        <span>{{ props.row.mfunckDoc.baseArehouse.baName }}</span>
                                    </el-form-item>
                                    <el-form-item label="出库单号">
                                        <el-tag type="success">{{props.row.mfunckDoc.ckCkdjNo  }}</el-tag>
                                    </el-form-item>
                                    <el-form-item label="客户编号">
                                        <span>{{ props.row.mfunckDoc.ckCkdjClientno }}</span>
                                    </el-form-item>
                                    <el-form-item label="客户名称">
                                        <span>{{ props.row.mfunckDoc.ckCkdjClientname  }}</span>
                                    </el-form-item>
                                    <el-form-item label="联系人">
                                        <span>{{ props.row.mfunckDoc.ckContacts }}</span>
                                    </el-form-item>
                                    <el-form-item label="联系电话">
                                        <span>{{props.row.mfunckDoc.ckTel }}</span>
                                    </el-form-item>
                                </el-col>
                                <el-col :span="10" :offset="2">
                                    <el-form-item label="货品编号">
                                        <el-tag type="success">{{props.row.mfunRepertory.baseGoods.bgGoodsNo  }}</el-tag>
                                    </el-form-item>
                                    <el-form-item label="货品名称">
                                        <span>{{ props.row.mfunRepertory.baseGoods.bgGoodsName }}</span>
                                    </el-form-item>

                                    <el-form-item label="货品数量">
                                        <span>{{ props.row.msxMxCount   }}</span>
                                    </el-form-item>
                                    <el-form-item label="货品体积">
                                        <el-tag>{{props.row.mfunRepertory.baseGoods.bgGoodsTj  }}</el-tag>

                                    </el-form-item>
                                    <el-form-item label="客户地址">
                                        <span>{{ props.row.mfunckDoc.ckAdress }}</span>
                                    </el-form-item>
                                    <el-form-item
                                            label="可用操作">
                                        <el-button
                                                size="small"
                                                type="info"
                                                @click="inlineExport(props.$index, props.row)">导出
                                        </el-button>
                                    </el-form-item>
                                </el-col>
                            </el-row>
                        </el-form>
                    </template>
                </el-table-column>
                <el-table-column
                        label="仓库"
                        show-overflow-tooltip
                        prop="mfunckDoc.baseArehouse.baName"
                        align="center">
                    <template scope="scope">
                        <el-tag
                                type="success"
                                close-transition>
                            {{(scope.row.mfunckDoc.baseArehouse.baName)}}
                        </el-tag>
                    </template>
                </el-table-column>
                <el-table-column
                        label="出库单号"
                        show-overflow-tooltip
                        align="center"
                        prop="mfunckDoc.ckCkdjNo">
                </el-table-column>
                <el-table-column
                        label="客户编号"
                        show-overflow-tooltip
                        align="center"
                        prop="mfunckDoc.ckCkdjClientno">
                </el-table-column>
                <el-table-column
                        label="客户名称"
                        show-overflow-tooltip
                        align="center"
                        prop="mfunckDoc.ckCkdjClientname">
                </el-table-column>
                <el-table-column
                        label="联系人"
                        show-overflow-tooltip
                        align="center"
                        prop="mfunckDoc.ckContacts">
                </el-table-column>
                <el-table-column
                        label="联系电话"
                        show-overflow-tooltip
                        prop="mfunckDoc.ckTel">
                </el-table-column>
                <el-table-column
                        v-if="multiSelect"
                        type="selection"
                        width="60">
                </el-table-column>
            </el-table>
            <div class="block">
                <el-pagination
                        @size-change="handleSizeChange"
                        @current-change="handleCurrentChange"
                        :current-page="1"
                        :page-sizes="[5, 10, 15, 20, 100, 500, 1000, 5000, 10000]"
                        :page-size="pageSize"
                        layout="total, sizes, prev, pager, next, jumper"
                        :total="currentTotal">
                </el-pagination>
            </div>
        </el-col>
    </el-row>
    <el-dialog
            size="large"
            class="select"
            v-model="dialogSelectVisible">

        <div class="dialog-title clearfix" slot="title">
            <span class="el-dialog__title">详细查询</span>
        </div>
        <el-form :model="form">
            <el-row>
                <el-col span="7">
                    <el-form-item label="货品名称"
                                  :label-width="formLabelWidth">
                        <el-input
                                v-model="form.bgGoodsName"
                                class="input"
                                icon="search"
                                placeholder="货品名称"></el-input>
                    </el-form-item>
                    <el-form-item label="货品编号"
                                  :label-width="formLabelWidth">
                        <el-input
                                class="input"
                                v-model="form.bgGoodsNo"
                                icon="search"
                                placeholder="货品编号"></el-input>
                    </el-form-item>
                    <el-form-item label="客户名称"
                                  :label-width="formLabelWidth">
                        <el-input
                                class="input"
                                v-model="form.ckCkdjClientname"
                                icon="search"
                                placeholder="客户名称"></el-input>
                    </el-form-item>
                    <el-form-item label="客户地址"
                                  :label-width="formLabelWidth">
                        <el-input
                                class="input"
                                v-model="form.ckAdress"
                                icon="search"
                                placeholder="客户地址"></el-input>
                    </el-form-item>
                    <el-form-item label="联系人"
                                  :label-width="formLabelWidth">
                        <el-input
                                class="input"
                                v-model="form.ckContacts"
                                icon="search"
                                placeholder="联系人"></el-input>
                    </el-form-item>
                </el-col>
                <el-col span="7" offset="2">
                    <el-form-item label="联系电话"
                                  :label-width="formLabelWidth">
                        <el-input
                                class="input"
                                v-model="form.ckTel"
                                icon="search"
                                placeholder="联系电话"></el-input>
                    </el-form-item>
                    <el-form-item label="客户编号"
                                  :label-width="formLabelWidth">
                        <el-input
                                class="input"
                                v-model="form.ckCkdjClientno"
                                icon="search"
                                placeholder="客户编号"></el-input>
                    </el-form-item>
                    <el-form-item label="出库单号"
                                  :label-width="formLabelWidth">
                        <el-input
                                class="input"
                                v-model="form.ckCkdjNo"
                                icon="search"
                                placeholder="出库单号"></el-input>
                    </el-form-item>
                    <el-form-item label="所属仓库" :label-width="formLabelWidth">
                        <el-select
                                :disabled="watchView"
                                v-model="form.ckArehouseId"
                                placeholder="请选择所属仓库">
                            <el-option :label="obj.baName" :value="obj.baArehouseId"
                                       v-for="obj of baseArehouses"></el-option>
                        </el-select>
                    </el-form-item>
                </el-col>
            </el-row>
        </el-form>

        <div slot="footer" class="dialog-footer">
            <el-button type="primary" @click="form = _form()">重置</el-button>
            <el-button type="primary" @click="selectSubmit" :loading="selectLoading">查询</el-button>
        </div>
    </el-dialog>
    <el-dialog
            size="large"
            class="printf"
            class="printf"
            v-model="dialogPrintfVisible">
        <div class="dialog-title clearfix" slot="title">
            <span class="el-dialog__title">打印标签页</span>
        </div>
        <el-tree
                :data="printf"
                :props="{label: 'name',children: 'children'}"
                :load="printfLoadNode"
                lazy
                show-checkbox
                ref="printf"
                @check-change="printfCheckChange">
        </el-tree>
        <div slot="footer" class="dialog-footer">
            <el-button type="primary" @click="printfSubmit" :loading="printfLoading">打印</el-button>
        </div>
    </el-dialog>
</div>
<link rel="stylesheet" href="index.scss">
<script src="index.js">

</script>





